Responding to a Browse Double-Click

Description

The following script was placed under the double-click event of a browse. It detects the name of the column and displays the current value of the double-clicked cell.

Example

dim brws as P
dim fldname as C
dim shortfldname as C
dim fldval as C
brws = Browse1.this
fldname = brws.active_drilldown()
shortfldname = word(fldname, 4, ":")
fldval = eval(fldname + ".text")
ui_msg_box("Value of " + shortfldname, fldval)

See Also